package com.example.mybatisplus01;


import com.baomidou.mybatisplus.test.autoconfigure.MybatisPlusTest;
import com.example.mybatisplus01.mapper.UserMapper;
import com.example.mybatisplus01.pojo.User;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;

import static org.hamcrest.MatcherAssert.assertThat;

@MybatisPlusTest
public class Mybatistest {

    @Autowired
    UserMapper userMapper;
    @Test
    void testInsert() {
        User sample = new User();
        userMapper.insert(sample);
    }
}
